package cate.game.train.inscription.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "开启铭文格子 的 请求")
public class PageOpenGridReq implements MsgInput {
    @NoteField("铭文页id")
    public int pageId;
    @NoteField("铭文页格子id")
    public byte pos;


    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.inscription.openGrid(cc.getRole(), pageId, pos);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.INSCRIPTION_PAGE_OPEN_GRID_REQ;
    }
}
